home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Amiga Classic Collection
/
The Amiga Classic Collection - Disc 1.iso
/
Education
/
ED16-CrosswordCreator.DMS
/
ED16-CrosswordCreator.adf
/
Source
/
CPCSleep.mod
< prev
next >
Wrap
Text File
|
1991-07-13
|
2KB
|
93 lines
IMPLEMENTATION MODULE CPCSleep;
IMPORT CPCGlobal;
IMPORT Mouse;
IMPORT SYSTEM;
VAR
pointeractive: BOOLEAN;
ptrdat: SYSTEM.ADDRESS;
(*$ EntryExitCode:=FALSE *)
PROCEDURE SleepPointerData;
BEGIN
SYSTEM.ASSEMBLE(
DC.W %1111111111111111
DC.W %1111111111111111
DC.W %1111111111111111
DC.W %0111111111111110
DC.W %0010000000000100
DC.W %0001000000001000
DC.W %0000100000010000
DC.W %0000010000100000
DC.W %0000001001000000
DC.W %0000000110000000
DC.W %0000000110000000
DC.W %0000000110000000
DC.W %0000001111000000
DC.W %0000011111100000
DC.W %0000111111110000
DC.W %0001111111111000
DC.W %0011111111111100
DC.W %0100000000000010
DC.W %1000000000000001
DC.W %1000000000000001
DC.W %1111111111111111
DC.W %1111111111111111
DC.W %1000000000000001
DC.W %1000000000000001
DC.W %0100000000000010
DC.W %0011111111111100
DC.W %0001111111111000
DC.W %0000111111110000
DC.W %0000011111100000
DC.W %0000001111000000
DC.W %0000000110000000
DC.W %0000000110000000
DC.W %0000000110000000
DC.W %0000001001000000
DC.W %0000010000100000
DC.W %0000100000010000
DC.W %0001000000001000
DC.W %0010000000000100
DC.W %0111111111111110
DC.W %1111111111111111
DC.W %1111111111111111
DC.W %1111111111111111
END);
END SleepPointerData;
PROCEDURE SleepPointer;
BEGIN
IF NOT pointeractive THEN
Mouse.MousePattern(CPCGlobal.window,ptrdat,21,-8,-11);
END;
pointeractive:=TRUE;
END SleepPointer;
PROCEDURE NormalPointer;
BEGIN
IF pointeractive THEN
Mouse.ResetPattern(CPCGlobal.window);
END;
pointeractive:=FALSE;
END NormalPointer;
BEGIN
pointeractive:=FALSE;
ptrdat:=SYSTEM.ADR(SleepPointerData);
END CPCSleep.